package com.baomidou.ant.service;

import com.baomidou.ant.entity.Alipay;
import com.baomidou.ant.vo.Response.ResponseMyAlipayVo;
import com.baomidou.mybatisplus.extension.service.IService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-24
 */
public interface IAlipayService extends IService<Alipay> {
    /**
     * 支付宝支付调用接口
     * @param response
     * @param request
     * @throws IOException
     */
    String  aliPay(HttpServletResponse response, HttpServletRequest request, Integer i, String s) throws IOException;
    //支付记录查询
    List<ResponseMyAlipayVo> listMyAlipay(Integer userId);
    //检测实名认证
    boolean checkRealName(Integer userId);
    //统计
    Integer payNums(Integer userId,Integer num);
}
